﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using LibNiconico.NiconicoApi.Internal;
using System.Xml.Linq;

namespace LibNiconico.NiconicoApi.Lives.Comments
{
    /// <summary>
    /// ニコニコ生放チャット送信結果コメント
    /// </summary>
    public sealed class NicoLiveChatResultComment:NicoXmlSocketChatResultComment
    {
        private NicoLiveChatResultComment() { }

        /// <summary>
        /// メッセージを解析し、コメントを生成
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        public static NicoLiveChatResultComment Parse(XElement message)
        {
            NicoLiveChatResultComment chatResult = new NicoLiveChatResultComment();
            NicoXmlSocketChatResultComment.Parse(chatResult, message);
            return chatResult;
        }
    }
}
